home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / samples / Multimedia / Direct3D / BumpMapping / BumpLens / readme.txt < prev    next >
Text File  |  2001-10-10  |  3KB  |  58 lines

  1. //-----------------------------------------------------------------------------
  2. // Name: BumpLens Direct3D Sample
  3. // 
  4. // Copyright (c) 1998-2001 Microsoft Corporation. All rights reserved.
  5. //-----------------------------------------------------------------------------
  6.  
  7.  
  8. Description
  9. ===========
  10.    The BumpLens sample demonstrates a lens effect that can be acheived using
  11.    bumpmapping. Bumpmapping is a texture blending technique used to render the
  12.    appearance of rough, bumpy surfaces, but can also be used for other effects
  13.    as shown here.
  14.  
  15.    Note that not all cards support all features for all the various bumpmapping
  16.    techniques (some hardware has no, or limited, bumpmapping support). For more
  17.    information on bumpmapping, refer to the DirectX SDK documentation. 
  18.  
  19.  
  20. Path
  21. ====
  22.    Source:     DXSDK\Samples\Multimedia\D3D\BumpMapping\BumpLens
  23.    Executable: DXSDK\Samples\Multimedia\D3D\Bin
  24.  
  25.  
  26. User's Guide
  27. ============
  28.    The following keys are implemented. The dropdown menus can be used for the
  29.    same controls.
  30.       <Enter>     Starts and stops the scene
  31.       <Space>     Advances the scene by a small increment
  32.       <F1>        Shows help or available commands.
  33.       <F2>        Prompts user to select a new rendering device or display mode
  34.       <Alt+Enter> Toggles between fullscreen and windowed modes
  35.       <Esc>       Exits the app.
  36.  
  37.  
  38. Programming Notes
  39. =================
  40.    Bumpmapping is an advanced multitexture blending technique that can be used
  41.    to render the appearance of rough, bumpy surfaces. The bump map itself is a 
  42.    texture that stores the perturbation data. Bumpmapping requires two
  43.    textures, actually. One is an environment map, which contains the lights 
  44.    that you see in the scene. The other is the actual bumpmapping, which 
  45.    contain values (stored as du and dv) used to "bump" the environment maps 
  46.    texture coordinates. Some bumpmaps also contain luminance values to control 
  47.    the "shininess" of a particular texel.
  48.  
  49.    This sample uses bumpmapping in a non-traditional fashion. Since bumpmapping
  50.    really just perturbs an environment map, it can be used for other effects. In
  51.    this case, perturbing a background image (which could be rendered on the fly)
  52.    to make a lens effect.
  53.  
  54.    This sample makes use of common DirectX code (consisting of helper functions,
  55.    etc.) that is shared with other samples on the DirectX SDK. All common
  56.    headers and source code can be found in the following directory:
  57.       DXSDK\Samples\Multimedia\Common
  58.